/*
* Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*/

#include "sharedmemory.h"

#if defined(Q_OS_SYMBIAN)
#include "sharedmemory_symbian_p.h"
#else
#include "sharedmemory_p.h"
#endif

SharedMemory::SharedMemory(QObject *parent) :
    QObject(parent),
    d_ptr(0)
{
    d_ptr = new SharedMemoryPrivate(this);
}

SharedMemory::~SharedMemory()
{
    delete d_ptr;
}

//bool SharedMemory::isStartedByPlugin() const
//    {
//    Q_D(const SharedMemory);

//    return d->isStartedByPlugin();
//    }

bool SharedMemory::isModified()
{
    Q_D(SharedMemory);

    return d->isModified();
}

QByteArray SharedMemory::message()
{
    Q_D(SharedMemory);

    return d->message();
}

//int SharedMemory::headerTime() const
//{
//    Q_D(const SharedMemory);

//    return d->headerTime();
//}

//int SharedMemory::messageTime() const
//{
//    Q_D(const SharedMemory);

//    return d->messageTime();
//}

//int SharedMemory::semaphoreError() const
//{
//    Q_D(const SharedMemory);

//    return d->semaphoreError();
//}

//int SharedMemory::chunkError() const
//{
//    Q_D(const SharedMemory);

//    return d->chunkError();
//}

//int SharedMemory::mutexError() const
//{
//    Q_D(const SharedMemory);

//    return d->mutexError();
//}
